﻿@{
    Layout = "~/Views/Shared/_Root.cshtml";
}

<header>
    <ul class="bar navbar">
        <li>
            <ul class="menu">
                <li>
                    <a href="#">@T(Res.Name("Menu"))</a>
                    @{ 
                        Html.RenderPartial("_Menu");
                    }
                </li>
            </ul>
        </li>
    </ul>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            jQuery('@ID("#loader")').hide();
            jQuery(document).ajaxStart(function () {
                jQuery('@ID("#loader")').show();
            });
            jQuery(document).ajaxStop(function () {
                jQuery('@ID("#loader")').hide();
            });
        });
    </script>
    <span class="loader" id="@ID("loader")">
        <img src="@Url.Content("/Content/Styles/Images/loader.gif")" alt="" />
    </span>
    <ul class="bar toolbar">
        <li>@Svc.Context.Infrastructure</li>
        <li class="separator">&#8227;</li>
        <li>@JDM.String(Svc.Account.Email)</li>
        <li class="separator"></li>
        <li><a class="button confirm" href="@Url.Action(Loc.Act("SignOut").Ctrl("Access").NoArea())">@T(Res.Name("SignOut"))</a></li>
    </ul>
    <span class="logo">
        <a href="http://xenta.net"><img src="@Url.Content("/Content/Styles/Images/logo.png")" 
            alt="Powered by Xenta Framework." 
            title="Powered by Xenta Framework." /></a>
    </span>
</header>
<section class="content">
    @RenderBody()
</section>
<div class="clear"></div>